import { getBlogPosts } from "./data";
import "./style.css"
import myImage from "./assets/images/1.jpg"
const blog = getBlogPosts()

const ul = document.createElement("ul")

blog.forEach((blog)=>{
    const li = document.createElement("li")
    li.innerText = blog
    ul.appendChild(li)
})
document.body.appendChild(ul)

const image  = document.createElement("img")
image.src = myImage
document.body.prepend(image)

const H1 = document.createElement('h1')
H1.innerText = "博客列表"
document.body.prepend(H1)